/*
import java.util.Arrays;
import java.util.Date;
*/
import java.util.Arrays;
import java.sql.Date;
import static java.lang.Math.*;

//import java.util.Date;
/**
 * @Author 12629
 * @Description：
 */
class Demo {
    public static int count = 100;

    public static String ret = "ceshi";

    public int func() {
        Demo demo1 = new Demo();
        Demo demo2 = new Demo();
        Demo demo3 = new Demo();
        demo1.count++;
        demo2.count++;
        demo3.count--;
        Demo.count++;
        return count;
    }
}
public class Test {

    public static void func() {
        System.out.println("func()...");
    }

    public static void main(String[] args) {
        func();
        /*Test test = new Test();
        test.func();*/
        //System.out.println(Student.getClassRoom());
    }

    public static void main5(String[] args) {
        Demo demo = null;
        System.out.println(demo.ret);
    }

    public static void main4(String[] args) {
        Demo demo = new Demo();
        System.out.println(demo.func());
    }

    public static void main3(String[] args) {
        //Test test = new Test(); ctr+d

        /*Student student1 = new Student("zhangsan",10);
        Student student2 = new Student("lisi",23);
        Student student3 = new Student("wangwu",9);
*/
       /* System.out.println(student1.classRoom);
        System.out.println(student2.classRoom);
        System.out.println(student3.classRoom);
*/

       // System.out.println(Student.classRoom);



        System.out.println("====");
    }

    public static void main2(String[] args) {
        double x = 30;
        double y = 40;
        // 静态导入的方式写起来更方便一些.
        //double result = Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2));
         double result = sqrt(pow(x, 2) + pow(y, 2));
        System.out.println(result);
    }

    public static void main1(String[] args) {

        Student student1 = new Student();
        //student1.name = "zhangsna";
        student1.setName("zhangsna");
        student1.setAge(12);
        System.out.println(student1.getName());
        //student1.age = 12;
        //student1.doClass();

        Student student2 = new Student("gaobo",10);
        student2.setName("lisi");
        student2.setAge(69);
        student2.doClass();

        System.out.println("=====");
        int[] array = {1,2,3,4,5};
        String ret = Arrays.toString(array);
        System.out.println(ret);

        java.util.Date date = new java.util.Date();
        //Date date1 = new Date();

        java.sql.Date date1 = new java.sql.Date(2015,5,10);

    }
}
